package com.yfp.operation.service;

import com.yfp.operation.domain.MarCouponPackDetails;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.operation.domain.dto.MarCouponPackCountDTO;
import com.yfp.operation.domain.vo.MarCouponPackDetailVO;

import java.util.List;

/**
 *
 * @description 针对表【mar_coupon_pack_details(礼包详情)】的数据库操作Service
 * @createDate 2024-09-25 10:37:56
 */
public interface MarCouponPackDetailsService extends IService<MarCouponPackDetails> {

    /**
     * 根据礼包id集合查询礼包里的优惠券数量
     *
     * @param couponPackIds
     * @return
     */
    List<MarCouponPackCountDTO> countMarCouponByCouponPackIds(List<Long> couponPackIds);

    /**
     * 根据礼包id集合查询礼包详情数量
     *
     * @param couponPackIds
     * @return
     */
    List<MarCouponPackCountDTO> countByCouponPackIds(List<Long> couponPackIds);

    /**
     * 根据礼包id查询礼包详情
     *
     * @param couponPackId
     * @return
     */
    List<MarCouponPackDetails> listByCouponPackId(Long couponPackId);

    /**
     * 根据礼包id集合查询礼包详情
     *
     * @param couponPackIds
     * @return
     */
    List<MarCouponPackDetails> listByCouponPackIds(List<Long> couponPackIds);

    /**
     * 补充礼包详情数据
     * 转变为前端展示数据格式
     *
     * @param marCouponPackDetails
     * @return
     */
    List<MarCouponPackDetailVO> complementListData(List<MarCouponPackDetails> marCouponPackDetails);
}
